package top.infopub.mgr.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;

import top.infopub.mgr.sys.dao.AreaDao;
import top.infopub.model.sys.Area;
import top.infopub.mgr.sys.service.AreaService;

@Service
public class AreaServiceImpl extends GenericServiceImpl<Area, String> implements
		AreaService {

	@Autowired
	private AreaDao areaDao;
	
	@Override
	public GenericDao<Area, String> getDao() {
		return areaDao;
	}

    @Override
    public int insertById(Area area) {
        return areaDao.insertById(area);
    }

}